/**
 * RepoController is the parent class of all application controllers.
 * It is mainly used to vehicle index page parameters across http
 * requests.
 * 
 * @author Eric LEON
 * @version 1.0.0
 */
package controllers;

import play.mvc.Controller;

public class RepoController extends Controller {

	/**
	 * Keep index page layout into flash scope.
	 */
	protected static void keepLayout() {
		flash.keep("m_idx");
		flash.keep("r_idx");
		flash.keep("t_idx");
	}

	/**
	 * Save index page layout into flash scope.
	 * 
	 * @param m	The displayed module accordion index.
	 * @param r	The displayed repository accordion index.
	 * @param t	The selected tab index.
	 */
	protected static void saveLayout(String m, String r, String t) {
		flash.put("m_idx", m);
		flash.put("r_idx", r);
		flash.put("t_idx", t);
	}
}
